make_ext4fs: add missing space after LDFLAGS
If LDFLAGS is non-empty then next standing "-o" flag may be mistakenly
appended to it leading to build error.
Fixes: 5c201be7d72a ("Add LDFLAGS when building libsparse.a")
Signed-off-by: Konstantin Demin <[email protected]>
[ improve commit description ]
Link: https://github.com/openwrt/make_ext4fs/pull/3
Signed-off-by: Christian Marangi <[email protected]>
Add LDFLAGS when building libsparse.a
Respect the LDFALGS provided from the outside when linking libsparse.a
Signed-off-by: Hauke Mehrtens <[email protected]>
make_ext4fs: fix build on musl systems
Include sys/sysmacros.h on all systems, except MACOS.
The previous change only included the header on glibc systems:
3af931b0b6545757aaeadb13f9bb9da0296fc172
Signed-off-by: Johannes Kimmel <[email protected]>
make_ext4: Add strict prototypes.
Removes some undefined behavior.
Signed-off by: Rosen Penev <
[email protected]>
make_ext4fs: Remove off64_t in favor of standard off_t
This fixes building against cygwin which does not define off64_t. off_t
under modern versions of OS X(or macOS) defaults to 64-bit. Furthermore,
_FILE_OFFSET_BITS is defined to 64-bit which eliminates the need for
using off64_t directly. Also, musl just like OS X defines off_t as 64-bit
in all situations. Also removed some code related to this.
Signed-off by: Rosen Penev <
[email protected]>
Allow creating empty filesystem images
Support creating empty filesystem images by making the source directory
argument optional.
Signed-off-by: Jo-Philipp Wich <[email protected]>
Only include sys/sysmacros.h on glibc, it is not portable
Signed-off-by: Felix Fietkau <[email protected]>
Include sys/sysmacros.h explicitely.
Recent glibc versions do not expose major() and minor() without an explicit
include of sysmacros.h anymore, therefor add it.
Also remove duplicate types.h include while we're at it.
Signed-off-by: Jo-Philipp Wich <[email protected]>
make_ext4fs: explicitly call setlocale() before creating image
The alphasort(3) function, which is used as comparison function for
scandir(3) is locale dependent (at least in glibc, in which it defers to
strcoll(3)). This patch explicitly calls setlocale(3), setting the
locale to "C".
Currently, there are no other calls to setlocale(), so this does not
change the behaviour. However, we'd like to be sure that in the future
no-one will break that.
Signed-off-by: Wojtek Porczyk <[email protected]>
Add option to link zlib statically
Signed-off-by: Jo-Philipp Wich <[email protected]>
avoid using libc's internal sys/cdefs.h
sha1.h simply shouldn't use it while sha1.c simply doesn't
Signed-off-by: Imre Kaloz <[email protected]>
Allow specifying reserved blocks percentage
Signed-off-by: Jo-Philipp Wich <[email protected]>
Remove unused mountpoint support
Signed-off-by: Jo-Philipp Wich <[email protected]>
Remove MinGW support code
Signed-off-by: Jo-Philipp Wich <[email protected]>
Support comments in fs config
Signed-off-by: Jo-Philipp Wich <[email protected]>
Support tabs as seaprators when parsing fs config
Signed-off-by: Jo-Philipp Wich <[email protected]>
Fix fs configuration support
Signed-off-by: Jo-Philipp Wich <[email protected]>
Remove Android specific code paths
Signed-off-by: Jo-Philipp Wich <[email protected]>
Remove references to O_BINARY
Signed-off-by: Jo-Philipp Wich <[email protected]>
libsparse: remove unused files
Signed-off-by: Jo-Philipp Wich <[email protected]>
Implement support for block and char dev nodes, fifos and sockets.
Signed-off-by: Jo-Philipp Wich <[email protected]>
Add required Android includes
Signed-off-by: Jo-Philipp Wich <[email protected]>
Remove selinux support code
Signed-off-by: Jo-Philipp Wich <[email protected]>
Import make_ext4fs sources
Signed-off-by: Jo-Philipp Wich <[email protected]>